package com.sina.shop.service.foot;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.foot.Foot;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-02-06-10:37
 */
public interface FootService extends BaseService {

    //根据用户id得到足迹列表
    List<Foot> getFootByAdminId(Long adminId);

    //根据id删除足迹记录
    Integer deleteFoot(Long id) throws DataException, UpdateException;

    //新增足迹
    Foot saveFoot(Foot foot) throws CreateException, ResourceExistsException, DataException;

    //更新足迹
    Foot updateFoot(Foot foot) throws UpdateException, DataException;
}
